'''
Created on 19/04/2010

@author: Mar
'''



from PCB import *


class Program:
    def __init__(self):
        self.instructions = []
        self.priority = 0
        
        
        
        
    ### Getters y Setters
    def getInstructions (self):
        return self.instructions
    
    def setInstructions (self, aList):
        self.instructions=aList
        
    def setPriority(self,p):
        self.priority = p
        
    def getPriority(self):
        return self.priority
        
    ### Protocolo
    def addInstruction(self,aIns):
        self.instructions.append(aIns)
        
        
    def toPCB(self):
        var = PCB(self)
        return var